#ifndef SWJ_H_
#define SWJ_H_
#endif /* SWJ_H_ */
#include "zf_common_headfile.h"

// 线的颜色
#define swj_BLACK 0
#define swj_WHITE 1
#define swj_RED 2
#define swj_GREEN 3
#define swj_BLUE 4
#define swj_PURPLE 5
#define swj_YELLOW 6
#define swj_CYAN 7
#define swj_ORANGE 8

// 点的样式
// 十字
#define swj_point_type1 1 // 3x3
#define swj_point_type2 2 // 5x5
#define swj_point_type3 3 // 7x7
#define swj_point_type7 7 // 超大
// X
#define swj_point_type4 4 // 3x3
#define swj_point_type5 5 // 5x5
#define swj_point_type6 6 // 7x7

void sendimg (uint8 *image, uint8 width, uint8 height);
void sendimg_A (uint8 *image, uint8 width, uint8 height);
void sendimg_zoom (uint8 *image, uint8 width, uint8 height, uint8 dis_width, uint8 dis_height);
void sendimg_binary (uint8 *image, uint8 width, uint8 height, uint8 otu);
void sendimg_binary_vec (uint8** image, uint8 width, uint8 height, uint8 otu);
void sendimg_binary_zoom (uint8 *image, uint8 width, uint8 height, uint8 dis_width, uint8 dis_height, uint8 otu);
void sendimg_binary_CHK (uint8 *image, uint8 width, uint8 height, uint8 otu, uint8 chk);

void put_int32 (uint8 name, int dat);
void put_float (uint8 name, float dat);

void sendline_clear (uint8 color, uint8 width, uint8 height);

void sendline_xy (uint8 *line_zx, uint8 *line_yx, uint8 len);
void sendline_uint8 (uint8 color, uint8 *buff, uint8 len);
void sendline_float (uint8 color, float (*buff)[2], uint8 len);
void sendline2 (uint8 color, uint8 *linex, uint8 *liney, uint8 len);

void sendpoint (uint8 color, uint8 x, uint8 y, uint8 type);

uint16 swj_CRC (uint8 *Buf, uint8 CRC_sta, uint8 CRC_CNT);

void ano_send_flexible_frame (int8 flag, int16 value);
